package com.oa.controller;

import com.oa.pojo.Education;
import com.oa.service.EducationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@CrossOrigin
@ResponseBody
@Controller
public class EducationController {

    @Autowired
    private EducationService educationService;

    @RequestMapping(value = "/getEducationList")
    public List<Education> getEducationList() {
        return educationService.getEducationList();
    }

}
